import React from 'react';
import { BrowserRouter as Router, Redirect, Route, NavLink, Switch } from 'react-router-dom';
import Home from './Home/Home.js'


import User from './Home/User.js'
import Topics from './Home/Topics.js'
import Article from './Home/Article.js'
import Activity from './Home/Activity.js'
import Book from './Home/Book.js'
import Add from './Home/Add.js'
import Addactivity from './Home/Addactivity.js'

class App extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
  		  
  	  };
    }
    componentDidMount() {
		console.log(123789);
    }
    render () {
		return (
        <Router>
      		<Switch>
				<Route exact path="/Home" component={Home}/>
				
				<Route exact path="/User" component={User}/>
				<Route exact path="/Topics" component={Topics}/>
				<Route exact path="/Article" component={Article}/>
				<Route exact path="/Activity" component={Activity}/>
				<Route exact path="/Book" component={Book}/>
				<Route exact path="/Add" component={Add}/>
				<Route exact path="/Addactivity" component={Addactivity}/>
      		</Switch>
			
      		<Home />
      	</Router>
    );
  }
}
export default App;